package com.team.arms.yuding.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName y_volunteer_schedule
 */
@Api( tags = "志愿时间")
@TableName(value ="y_volunteer_schedule")
@Data
public class VolunteerSchedule implements Serializable {
    /**
     * 志愿时间编号
     */
    @ApiModelProperty("志愿时间编号")
    @ExcelProperty("志愿时间编号")
    @TableId(type = IdType.ASSIGN_ID)
    private String volunteerScheduleId;

    /**
     * 批次编号
     */
    @ApiModelProperty("批次编号")
    @ExcelProperty("批次编号")
    private String batchId;

    /**
     * 提前批开启时间
     */
    @JsonFormat(pattern = "yyyy.MM.dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("提前批开启时间")
    @ExcelProperty("提前批开启时间")
    private Date earlyBatchStartTime;

    /**
     * 提前批截止时间
     */
    @JsonFormat(pattern = "yyyy.MM.dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("提前批截止时间")
    @ExcelProperty("提前批截止时间")
    private Date earlyBatchEndTime;

    /**
     * 正常批开启时间
     */
    @JsonFormat(pattern = "yyyy.MM.dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("正常批开启时间")
    @ExcelProperty("正常批开启时间")
    private Date normalGroupStartTime;

    /**
     * 正常批截止时间
     */
    @JsonFormat(pattern = "yyyy.MM.dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("正常批截止时间")
    @ExcelProperty("正常批截止时间")
    private Date normalGroupEndTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}